package com.beamfield.dao.sys;

import com.beamfield.model.FileType;
import com.beamfield.modelVo.TreeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface FileTypeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FileType record);

    int insertSelective(FileType record);

    FileType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FileType record);

    int updateByPrimaryKey(FileType record);

    List<FileType> selectByBeamId(@Param("beamId") Long beamId);

    List<TreeVo> selectDocumentNameByQuery(@Param("query") String query,@Param("beamId") Long beamId);

    int deleteWithLocs(long id);
}